import 'package:flutter/material.dart';

class MyApp1 extends StatelessWidget {
  const MyApp1({super.key, this.age = 17});

  // 年龄组件
  final int age;
  
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Text(
        '我叫玛利亚, 今年: $age岁',
        style: const TextStyle(color: Colors.red, fontSize: 20.0),
      ),
    );
  }
}